package sdk

// 报关单据号查询请求
type CustomFindCustomTradeNoRequest struct {
	*BaseRequest
	CustomOrderNo string `json:"customOrderNo"` // 报关单号: 必填, 即履约单号
}

func (request *CustomFindCustomTradeNoRequest) GetMethod() (method string) {
	return "/custom/findCustomTradeNo"
}

//
func CreateCustomFindCustomTradeNoRequest() (request *CustomFindCustomTradeNoRequest) {
	request = &CustomFindCustomTradeNoRequest{
		BaseRequest: &BaseRequest{},
	}
	return
}

// 报关单据号查询响应
type CustomFindCustomTradeNoResponse struct {
	*BaseResponse
	Data CustomFindCustomTradeNoData `json:"data,omitempty"`
}

//
type CustomFindCustomTradeNoData struct {
	CustomTradeNo string `json:"customTradeNo,omitempty"` // 报关单号
}

// 报关单据号查询
func (client *Client) CustomFindCustomTradeNo(request *CustomFindCustomTradeNoRequest) (response *CustomFindCustomTradeNoResponse, err error) {
	response = &CustomFindCustomTradeNoResponse{
		BaseResponse: &BaseResponse{},
	}
	err = client.DoAction(request, response)
	return
}
